package com.tedu.mybatixdb.Mapper;

import com.tedu.mybatixdb.pojo.Product;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ProductMapper {
    @Insert("INSERT INTO product(title,price,stock)" +
            "VALUES (#{title},#{price},#{stock})")
    int insertProduct(Product product);

}
